package cn.edu.bupt.scidata.model.paper;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(indexName = "papers", type = "_doc")
public class Paper implements Serializable {
    @Id
    private int id;
    @Field(name = "title", type = FieldType.Text)
    private String title;
    @Field(name = "author", type = FieldType.Text)
    private String author;
//    private String comp;
    @Field(name = "keywords", type = FieldType.Text)
    private String keywords;
//    private String abstracts;
//    private String from;
    @Field(name = "time", type = FieldType.Date)
    private String time;
    @Field(name = "quote", type = FieldType.Long)
    private int quote;
    @Field(name = "abstract", type = FieldType.Text)
    private String detail;
}
